import request from '@/utils/request'
const group_name = 'api'
const api_name = 'enterprise'
export default {
    getList() {
        return request({
            url: `/${group_name}/${api_name}`,
            method: 'get'
        })
    },
    search(page, size, searchMap) {
        return request({
            url: `/${group_name}/${api_name}/search/${page}/${size}`,
            method: 'post',
            data: searchMap
        })
    },
    hotlist() {
        return request({
            url: `/${group_name}/${api_name}/search/hotlist`,
            method: 'get'
        })
    },
    findById(id) {
        return request({
            url: `/${group_name}/${api_name}/${id}`,
            method: 'get'
        })
    }
}